home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-09-23 | 7.2 KB | 246 lines | [TEXT/MPS ] |
- /*
- File: Custom.r
-
- Contains: A set of template which complement the USER template.
-
-
- Copyright: © 1993 by Apple Computer, Inc.
-
- */
-
- #include "OCE.r"
-
-
- //------------------ List of Templates
- #define kForward kDETFirstID
- #define kEInfoPageAspect kDETSecondID
- #define kEInfoPage kDETThirdID
-
-
-
- // ------------------ Properties
- #define kFunction kDETFirstDevProperty
-
-
- // ------------------ icon resources
- include "Custom.rsrcs" 'ICN#'(128) as 'ICN#'(kEInfoPageAspect+kDETAspectMainBitmap, purgeable);
- include "Custom.rsrcs" 'icl4'(128) as 'icl4'(kEInfoPageAspect+kDETAspectMainBitmap, purgeable);
- include "Custom.rsrcs" 'icl8'(128) as 'icl8'(kEInfoPageAspect+kDETAspectMainBitmap, purgeable);
- include "Custom.rsrcs" 'ics#'(128) as 'ics#'(kEInfoPageAspect+kDETAspectMainBitmap, purgeable);
- include "Custom.rsrcs" 'ics4'(128) as 'ics4'(kEInfoPageAspect+kDETAspectMainBitmap, purgeable);
- include "Custom.rsrcs" 'ics8'(128) as 'ics8'(kEInfoPageAspect+kDETAspectMainBitmap, purgeable);
-
- include "UserInfoPageAspect.code" 'code'(1) as 'detc'(kEInfoPageAspect+kDETAspectCode, purgeable);
-
-
- // -----------------------Aspect Template---------------------------
-
- // Aspect template
- resource 'deta' (kEInfoPageAspect, purgeable) {
- 0, // Drop priority
- dropCheckAlways, // Drop check flag
- notMainAspect, // Not the main aspect
- };
-
-
- resource 'rstr' (kEInfoPageAspect+kDETTemplateName, purgeable) {
- "ACFC InfoPage aspect"
- };
-
- resource 'rstr' (kEInfoPageAspect+kDETRecordType, purgeable) {
- "aoce User"
- };
-
-
- // drag and drop resources
-
- resource 'rstr' (kEInfoPageAspect+kDETAspectDragInString, purgeable) {
- "Do you want to add %3% “^3”% the selected items% to the company info for “^2” ?"
- };
-
- resource 'rstr' (kEInfoPageAspect+kDETAspectDragInVerb, purgeable) {
- "Add"
- };
-
- resource 'rstr' (kEInfoPageAspect+kDETAspectDragInSummary, purgeable) {
- "The object will be added to the sublist"
- };
-
-
-
- // Built-in types can be dragged in the sublist:
- resource 'rst#' (kEInfoPageAspect+kDETAspectRecordDragIn,purgeable) {
- {
- "ACFC Keywords", "ACFC Alias keyword",
- }
- };
-
-
- // human interface resources
- resource 'detm' (kEInfoPageAspect+kDETAspectViewMenu, purgeable) {
- kEInfoPageAspect+kDETAspectViewMenu,
- {
- kDETPrName, "By Name";
- kDETPrKind, "By Kind";
- }
- };
-
- resource 'rst#' (kEInfoPageAspect+kDETAspectBalloons,purgeable) {
- {
- "Description of the employee’s job","Function : Uneditable because the record is locked or access controled."
- }
- };
-
-
- //------------------ Lookup Table
-
- resource 'dett' (kEInfoPageAspect+kDETAspectLookup, purgeable) {
- {
- {"ACFC Company Empext Function"}, typeBinary,
- useForInput, useForOutput, notInSublist, isNotAlias, isNotRecordRef,
- {
- 'rstr',kFunction,0;
- };
- {"ACFC Alias keyword"}, typePackedDSSpec,
- notForInput, notForOutput, useInSublist, isAlias, isNotRecordRef,
- {};
- }
- };
-
-
- // -----------------------info-page------------------------------------------
-
- #define kDETUserInfoWindWidth 350
-
- #define kDETInset 10
- #define kDETSublistSpaceBetweenColumns 2
- #define kDETIconWidth 16
- #define kDETItemLength 150
-
- /* label and edit field positions */
- #define kFunctionTop 30
- #define kFunctionLeft 10
- #define kFunctionBottom kFunctionTop+kDETAppFontLineHeight+4
- #define kFunctionRight kFunctionLeft+110
-
- #define kTEFunctionTop kFunctionTop
- #define kTEFunctionLeft kFunctionRight+kDETSublistSpaceBetweenColumns
- #define kTEFunctionBottom kTEFunctionTop+(3 * kDETAppFontLineHeight)
- #define kTEFunctionRight kDETUserInfoWindWidth - kDETInset
-
- /* sublist position */
- #define kSublistTop kTEFunctionBottom+24
- #define kSublistLeft kFunctionLeft
- #define kSublistBottom kSublistTop+kDETIconWidth*5
- #define kSublistRight kDETUserInfoWindWidth - kDETInset
-
- #define kSublistSeeAlsoTop (kSublistTop-kDETAppFontLineHeight-4)
- #define kSublistSeeAlsoBottom kSublistSeeAlsoTop+kDETAppFontLineHeight
- #define kSublistSeeAlsoLeft kDETIconWidth+kDETSublistSpaceBetweenColumns
- #define kSublistSeeAlsoRight kSublistSeeAlsoLeft+kDETItemLength
-
- #define kSublistKindTop kSublistSeeAlsoTop
- #define kSublistKindBottom kSublistSeeAlsoBottom
- #define kSublistKindLeft kSublistSeeAlsoRight+kDETSublistSpaceBetweenColumns
- #define kSublistKindRight kSublistKindLeft+kDETItemLength
-
- /* items in sublist */
- #define kSeeAlsoColumnLeft kSublistSeeAlsoLeft
- #define kSeeAlsoColumnRight kSublistSeeAlsoRight
-
- #define kKindColumnLeft kSublistKindLeft
- #define kKindColumnRight kSublistKindRight
-
- #define kDETSublistIconColumnLeft kDETSublistSpaceBetweenColumns
- #define kDETSublistIconColumnRight kDETSublistIconColumnLeft + kDETIconWidth
-
- #define kDETSublistEntryTop -kDETAppFontLineHeight/2
- #define kDETSublistEntryBottom kDETSublistEntryTop + kDETAppFontLineHeight
-
- // info page signature resource
- resource 'deti' (kEInfoPage, purgeable) {
- 4000, // sort-order number,info-page must be placed after standard ones
- {kSublistTop,kSublistLeft,kSublistBottom,kSublistRight},
- noSelectFirstText,
- {
- kDETNoProperty, kDETNoProperty, kEInfoPage;
- },
- {
- kDETNoProperty, kDETNoProperty, kEInfoPage+1;
- }
- };
-
- resource 'rstr' (kEInfoPage+kDETTemplateName, purgeable) {
- "ACFC 1stInfoPage"
- };
-
- resource 'rstr' (kEInfoPage+kDETRecordType, purgeable) {
- "aoce User"
- };
-
-
-
- resource 'rstr' (kEInfoPage+kDETInfoPageName, purgeable) {
- "Company Info"
- };
-
- resource 'rstr' (kEInfoPage+kDETInfoPageMainViewAspect, purgeable) {
- "ACFC InfoPage aspect"
- };
-
-
-
- // info page view list
- resource 'detv' (kEInfoPage, purgeable) {
- {
- {6, 150, 22, 166}, // Predefined values
- kDETNoFlags, kDETAspectMainBitmap,
- Bitmap { kDETSmallIcon };
-
- {kFunctionTop, kFunctionLeft, kFunctionBottom, kFunctionRight}, kDETNoFlags, kDETNoProperty,
- StaticTextFromView {kDETApplicationFont,kDETApplicationFontSize, kDETRight, kDETBold,
- "Job description" };
-
- {kTEFunctionTop, kTEFunctionLeft, kTEFunctionBottom, kTEFunctionRight}, kDETMultiLine, kFunction,
- EditText { kDETApplicationFont, kDETApplicationFontSize, kDETLeft, kDETNormal };
-
-
- {kSublistSeeAlsoTop, kSublistSeeAlsoLeft, kSublistSeeAlsoBottom, kSublistSeeAlsoRight},
- kDETNoFlags, kDETPrName,
- StaticCommandTextFromView { kDETDefaultFont, kDETDefaultFontSize, kDETLeft, kDETUnderline,
- "Name",kDETChangeViewCommand, -1 };
-
- {kSublistKindTop, kSublistKindLeft, kSublistKindBottom, kSublistKindRight},
- kDETNoFlags, kDETPrKind,
- StaticCommandTextFromView { kDETDefaultFont, kDETDefaultFontSize, kDETLeft, kDETNormal,
- "Kind",kDETChangeViewCommand, -2 };
-
- {kSublistTop-1, kSublistLeft-1, kSublistBottom+1, kSublistRight+1}, kDETNoFlags, kDETNoProperty,
- Box { kDETUnused };
-
-
- }
-
- };
-
- //------------------ Sublist viewlist - Description of an entry in the sublist
-
- resource 'detv' (kEInfoPage+1, purgeable) {
- {
- {kDETSublistEntryTop, kDETSublistIconColumnLeft, kDETSublistEntryBottom, kDETSublistIconColumnRight},
- kDETEnabled, kDETAspectMainBitmap,
- Bitmap { kDETMiniIcon };
-
- {kDETSublistEntryTop, kSeeAlsoColumnLeft, kDETSublistEntryBottom, kSeeAlsoColumnRight},
- kDETEnabled + kDETDynamicSize, kDETPrName,
- EditText { kDETDefaultFont, kDETDefaultFontSize, kDETLeft, kDETItalic };
-
- {kDETSublistEntryTop, kKindColumnLeft, kDETSublistEntryBottom, kKindColumnRight},
- kDETEnabled + kDETDynamicSize, kDETPrKind,
- EditText { kDETDefaultFont, kDETDefaultFontSize, kDETLeft, kDETNormal };
-
- }
- };
-
-
-